using ASP;
using HoWave.Common;
using HoWave.Web;
using HoWave.Web.Shop.Member;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class Credit_Identify_agree : Member, IRequiresSessionState
{
	protected Literal sitename;
	protected Button gonext;
	protected HtmlForm form_1;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Init(object sender, EventArgs e)
	{
		Template.BindTemplateToPage(this.Page, "IdentifyAgree");
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!base.IsPostBack)
		{
			Panel panel = (Panel)this.Page.FindControl("PersonIdentify");
			Panel panel2 = (Panel)this.Page.FindControl("CompanyIdentify");
			string text = Fetch.Get("type");
			if (text != null)
			{
				if (text == "1")
				{
					if (panel != null)
					{
						panel.Visible = true;
					}
					goto IL_B9;
				}
				if (text == "2")
				{
					if (panel2 != null)
					{
						panel2.Visible = true;
					}
					goto IL_B9;
				}
			}
			if (panel != null)
			{
				panel.Visible = true;
			}
			IL_B9:;
		}
	}
	protected void gonext_Click(object sender, EventArgs e)
	{
		string text = Fetch.Get("type");
		if (text != null)
		{
			if (text == "1")
			{
				base.Response.Redirect("identify_user.aspx");
				return;
			}
			if (text == "2")
			{
				base.Response.Redirect("identify_company.aspx");
				return;
			}
		}
		base.Response.Redirect("identify_user.aspx");
	}
}
